package com.jesper.seckill.mapper;

import com.jesper.seckill.entity.po.GoodsSeckill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jesper.seckill.entity.vo.response.goods.GoodsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sjw
 * @since 2024-01-18
 */
public interface GoodsSeckillMapper extends BaseMapper<GoodsSeckill> {

    /**
     * 秒杀商品列表
     */
    List<GoodsVO> getSecKillGoodList();

    /**
     * 根据商品id获取秒杀商品VO信息
     */
    GoodsVO getSeckillGoodsVOByGoodsId(@Param("goodsId") Long goodsId);
}
